AUTOMAKE_OPTIONS = foreign

ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}

AM_CXXFLAGS = @AM_CXXFLAGS@ -L. -I. $(SSL_CFLAGS)

AM_LDFLAGS = -DBUILDING_EXAMPLE_DLL @AM_LDFLAGS@ -L. -I. $(SSL_LIBS)

lib_LTLIBRARIES = libex-@LIBEX_API_VERSION@.la
lib_LIBRARIES = libex-@LIBEX_API_VERSION@.a

libex_@LIBEX_API_VERSION@_ladir = $(includedir)
libex_@LIBEX_API_VERSION@_adir = $(includedir)

libex_@LIBEX_API_VERSION@_la_SOURCES = libex.C 
libex_@LIBEX_API_VERSION@_a_SOURCES = libex.C 

libex_@LIBEX_API_VERSION@_la_HEADERS = libex.h
libex_@LIBEX_API_VERSION@_a_HEADERS = libex.h

libex_@LIBEX_API_VERSION@_la_LDFLAGS = -version-info $(LIBEX_SO_VERSION) -no-undefined $(SSL_LIBS)

libex_@LIBEX_API_VERSION@_la_CPPFLAGS = -I. -g -c -L. $(SSL_CFLAGS)

libex_@LIBEX_API_VERSION@_a_LIBADD = @LTLIBOBJS@

win32-dll:
	$(CXX) -I. -L. -shared -Wl,-soname,--out-implib,--enable-stdcall-fixup,.libs/libex-@LIBEX_API_VERSION@.a -o libex-@LIBEX_API_VERSION@.dll .libs/libex_@LIBEX_API_VERSION@_la-libex.o -L$(prefix)/lib -L$(prefix)/bin

teste:
	$(CXX) `pkg-config --libs --cflags libex-1.0` -o testar teste.C